Image interpolation method and apparatus, and method for obtaining interpolation coefficients

ABSTRACT

An image interpolation method includes: obtaining pixel values of integer pixel points and/or sub-pixel points in the row, column or any other directions of pixel points; obtaining pre-calculated interpolation coefficients, and interpolating the pixel points. A method for obtaining image interpolation coefficients includes: solving a one-dimensional Wiener-Hopf equation to obtain needed interpolation coefficients in different directions. An image interpolation apparatus performs interpolation filter processing on pixel points by using a first obtaining module, a second obtaining module, and a first calculating module. With the image interpolation method and apparatus, and the method for obtaining interpolation coefficients, the interpolation filter accuracy of the pixel points may be improved, the search accuracy of pixel points may be improved, and thus a more accurate matching block may be obtained in a reference image.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No. PCT/CN2008/073326, filed on Dec. 3, 2008, which claims priority to Chinese Patent Application No. 200710195919.0, filed on Dec. 4, 2007, both of which are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

The present invention relates to a communication technology, and in particular, to an image interpolation method and apparatus, and a method for obtaining interpolation coefficients.

BACKGROUND

The motion estimation algorithm and motion compensation algorithm are core algorithms in the video encoding and decoding technology. The principle of motion estimation is as follows: during the encoding, the currently encoded image block is used as the unit, and a proper matching block is searched in a reference image; a residual is obtained by subtracting the pixel value of the matching block from the pixel value of the image block to remove the redundant information of the image; the residual is converted to remove the redundant information once again, and the entropy encoding is performed on the value obtained after the variation coefficient is quantized; the bit data obtained after the entropy encoding is written to a bit stream; the motion offset is also written to the bit stream after undergoing the encoding, where the motion offset is the difference between the position of the matching block in the reference image and the position of the currently encoded image block in the current image. The offset is also called a motion vector. The principle of motion compensation is as follows: during the decoding, the entropy encoding information is retrieved from the bit data in the bit stream and undergoes the entropy encoding; the residual obtained in the motion estimation is obtained after the entropy encoding information undergoes inverse quantization and inverse conversion, and the motion vector is obtained from the bit stream; a corresponding matching block is obtained in the reference image according to the motion vector value, and the pixel value after the current image block is decoded is equal to the sum of the pixel value of the matching block and the pixel value of the reference image in the residual value. Because the residual between the currently encoded image block and the matching block is written to the bit stream, the redundant information of the currently encoded image block is greatly reduced, which compresses the information written to the bit stream and thus improves the encoding efficiency.

During the motion estimation, to find a more accurate matching block in the reference image, the redundant information may be further reduced. The encoder/decoder generally uses search based on the sub-pixel accuracy. Integer pixel points are original pixel points of an original image or an encoded/decoded image. After multiple integer pixel points are processed, the pixel points obtained between the integer pixel points are called sub-pixel points. That is, the sub-pixel points between two integer pixel points may be called one-half sub-pixel points (hereinafter referred to as ½ sub-pixel points), for example, b, h, and j shown in FIG. 1. The sub-pixel points between two ½ sub-pixel points or between an integer pixel point and a ½ sub-pixel point may be called one-quarter sub-pixel points (hereinafter referred to as ¼ sub-pixel points), for example, a c, d, l, f, n, I, k, e, g, m, and o shown in FIG. 1. The process of obtaining sub-pixel points may be called an interpolation filter process. The search based on the sub-pixel accuracy may obtain a better image matching block, which may reduce the redundant information of the currently encoded image block and improve the encoding efficiency. Thus, the interpolation filter of pixel points determines the effect of the search based on the sub-pixel accuracy. In addition, in the interpolation filter of high-accuracy pixel points, the complexity of the interpolation method is also an important factor in the current video encoding and decoding technology.

Standards related to the video encoding and decoding technology provide interpolation methods based on ¼ sub-pixels, for example, ¼ sub-pixel interpolation in the following solution 1 and adaptive ¼ sub-pixel interpolation in the following solutions 2 and 3.

In the current video compression encoding standards such as H.264/AVC and AVS, interpolation methods based on the ½ sub-pixel accuracy and ¼ sub-pixel accuracy are generally used. The interpolation methods and interpolation coefficients used in the interpolations are fixed. That is, all the image blocks in an image have the same interpolation methods based on the sub-pixel accuracy; and the ½ sub-pixel points and ¼ sub-pixel points at the same position in the image blocks have the same interpolation methods and interpolation coefficients. The following are examples.

Solution 1: As shown in FIG. 1, C3, C4, D3, and D4 are integer pixel points; b, h, and j are ½ sub-pixel points to be interpolated between these four integer pixel points; a, c, d, l, f, n, I, k, e, g, m, and o are ¼ sub-pixel points to be interpolated between these four integer pixel points. The following describes specific interpolation methods for the preceding sub-pixel points.

The interpolations of the ½ sub-pixel points areas follows:

b=(C1−5×C2+2×C3+2×C4−5×C 5+C6)/32;

h=(A3−5×B3+2×C3+2×D3−5×E3+F3)/32;

j=(b _(A)−5×b _(B)+20×b+20×b _(D)−5×b _(E) +b _(F))/32;

b_(A) indicates the ½ sub-pixel point between A3 and A4; b_(B) indicates the ½ sub-pixel point between B3 and B4; the rest may be deduced in the same way.

The interpolations of the ¼ sub-pixel points are as follows:

a=(C3+b)/2; c=(b+C4)/2; d=(C3+h)/2; 1=(h+D3)/2;

f=(b+j)/2; n=(j+b_(D))/2; i=(h+j)/2; k=(H4+j)/2;

e=(b+h)/2; g=(b+H4)/2; m=(h+b_(D))/2; o=(b_(D)+H4)/2;

H4 indicates the ½ sub-pixel point between C4 and D4.

The following describes specific interpolation methods of the sub-pixel points in the AVS standard, as shown in FIG. 1.

The interpolations of the ½ sub-pixel points are as follows:

b=(−C2+5C3+5C4−C5)/8;

h=(−B3+5C3+5D3−E3)/8;

j=(−bB+5b+5bD−bE)/8;

The interpolations of the ¼ sub-pixel points are as follows:

a=(−C1−2C2+96C3+42C4−7C5)/128;

c=(−7C2+42C3+96C4−2C5−C6)/128;

i=(−H1−2H2+96h+42H4−7H5)/128;

k=(−7H2+42h+96H4−2H5−H6)/128;

H1 indicates the ½ sub-pixel point between C1 and D1; H2 indicates the ½ sub-pixel point between C2 and D2; the rest may be deduced in the same way.

d=(−C1−2C2+96C3+42C4−7C 5)/128;

1=(−7C2+42C3+96C4−2C5−C6)/128;

f=(−b _(A)−2b _(B)+96b+42b _(D)−7b _(E))/128;

n=(−7b _(B)−42b+96b _(D)−2b _(E) −b _(F))/128;

b_(A) indicates the ½ sub-pixel point between A3 and A4; b_(B) indicates the ½ sub-pixel point between B3 and B4; the rest may be deduced in the same way.

e=(C3+j)/2; o=(D4+j)/2;

g=(C4+j)/2; m=(D3+j)/2;

In the current sub-pixel interpolation algorithm, the interpolation coefficients are fixed. As a result, the interpolation method cannot be adapted to the change of the image texture and structure information. In the H.264/AVC standard, only weighted averaging is performed on two adjacent points of the ¼ sub-pixel points, which greatly reduces the interpolation accuracy. In the AVS standard, only weighted averaging is performed on two neighbor points of e, g, m, and o, which greatly reduces the interpolation accuracy. Thus, the search accuracy of sub-pixel points is not high.

Solution 2: In the current VCEG standard, a frame-level adaptive two-dimensional interpolation filter method is available. Details are as follows:

${a = \begin{bmatrix} {{C\; {1 \cdot h_{1a}}} + {C\; {2 \cdot h_{2a}}} + {C\; {3 \cdot h_{3a}}} +} \\ {{C\; {4 \cdot h_{4a}}} + {C\; {5 \cdot h_{5a}}} + {C\; {6 \cdot h_{6a}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10$ ${b = \begin{bmatrix} {{\left( {{C\; 1} + {C\; 6}} \right) \cdot h_{1b}} + {\left( {{C\; 2} + {C\; 5}} \right) \cdot}} \\ {h_{2b} + {\left( {{C\; 3} + {C\; 4}} \right) \cdot h_{3b}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10$ ${c = \begin{bmatrix} {{C\; {1 \cdot h_{1c}}} + {C\; {2 \cdot h_{2c}}} + {C\; {3 \cdot h_{3c}}} +} \\ {{C\; {4 \cdot h_{4c}}} + {C\; {5 \cdot h_{5c}}} + {C\; {6 \cdot h_{6c}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10$ ${d = \begin{bmatrix} {{A\; {3 \cdot h_{1d}}} + {B\; {3 \cdot h_{2d}}} + {C\; {3 \cdot h_{3d}}} + {D\; {3 \cdot}}} \\ {h_{4d} + {E\; {3 \cdot h_{5d}}} + {F\; {3 \cdot h_{6d}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10$ ${l = \begin{bmatrix} {{A\; {3 \cdot h_{1l}}} + {B\; {3 \cdot h_{2l}}} + {C\; {3 \cdot h_{3l}}} + {D\; {3 \cdot}}} \\ {h_{4l} + {E\; {3 \cdot h_{5l}}} + {F\; {3 \cdot h_{6l}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10$ ${h = \begin{bmatrix} {{\left( {{A\; 3} + {F\; 3}} \right) \cdot h_{1h}} + {\left( {{B\; 3} + {E\; 3}} \right) \cdot}} \\ {h_{2h} + {\left( {{C\; 3} + {D\; 3}} \right) \cdot h_{3h}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10$ ${{f = \begin{bmatrix} \begin{matrix} \begin{matrix} {{\left( {{A\; 1} + {A\; 6}} \right) \cdot h_{11f}} + {\left( {{A\; 2} + \; {A\; 5}} \right) \cdot h_{12f}} +} \\ {{\left( {{A\; 3} + {A\; 4}} \right) \cdot h_{13f}} + {\left( {{B\; 1} + {B\; 6}} \right) \cdot h_{21f}} +} \end{matrix} \\ {{\left( {{B\; 2} + \; {B\; 5}} \right) \cdot h_{22f}} + {\left( {{B\; 3} + {B\; 4}} \right) \cdot h_{23f}} +} \\ {{\left( {{C\; 1} + {C\; 6}} \right) \cdot h_{31f}} + {\left( {{C\; 2} + \; {C\; 5}} \right) \cdot h_{32f}} +} \\ {{\left( {{C\; 3} + {C\; 4}} \right) \cdot h_{33f}} + {\left( {{D\; 1} + {D\; 6}} \right) \cdot h_{41f}} +} \\ {{\left( {{D\; 2} + \; {D\; 5}} \right) \cdot h_{42f}} + {\left( {{D\; 3} + {D\; 4}} \right) \cdot h_{43f}} +} \\ {{\left( {{E\; 1} + {E\; 6}} \right) \cdot h_{51f}} + {\left( {{E\; 2} + \; {E\; 5}} \right) \cdot h_{52f}} +} \\ {{\left( {{E\; 3} + {E\; 4}} \right) \cdot h_{53f}} + {\left( {{F\; 1} + {F\; 6}} \right) \cdot h_{61f}} +} \end{matrix} \\ {{\left( {{F\; 2} + \; {F\; 5}} \right) \cdot h_{62f}} + {\left( {{F\; 3} + {F\; 4}} \right) \cdot h_{63f}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{n = \begin{bmatrix} \begin{matrix} {{\left( {{A\; 1} + {A\; 6}} \right) \cdot h_{11n}} + {\left( {{A\; 2} + \; {A\; 5}} \right) \cdot h_{12n}} +} \\ {{\left( {{A\; 3} + {A\; 4}} \right) \cdot h_{13n}} + {\left( {{B\; 1} + {B\; 6}} \right) \cdot h_{21n}} +} \\ {{\left( {{B\; 2} + \; {B\; 5}} \right) \cdot h_{22n}} + {\left( {{B\; 3} + {B\; 4}} \right) \cdot h_{23n}} +} \\ {{\left( {{C\; 1} + {C\; 6}} \right) \cdot h_{31n}} + {\left( {{C\; 2} + \; {C\; 5}} \right) \cdot h_{32n}} +} \end{matrix} \\ {{\left( {{C\; 3} + {C\; 4}} \right) \cdot h_{33n}} + {\left( {{D\; 1} + {D\; 6}} \right) \cdot h_{41n}} +} \\ {{\left( {{D\; 2} + \; {D\; 5}} \right) \cdot h_{42n}} + {\left( {{D\; 3} + {D\; 4}} \right) \cdot h_{43n}} +} \\ \begin{matrix} {{\left( {{E\; 1} + {E\; 6}} \right) \cdot h_{51n}} + {\left( {{E\; 2} + \; {E\; 5}} \right) \cdot h_{52n}} +} \\ {{\left( {{E\; 3} + {E\; 4}} \right) \cdot h_{53n}} + {\left( {{F\; 1} + {F\; 6}} \right) \cdot h_{61n}} +} \end{matrix} \\ {{\left( {{F\; 2} + \; {F\; 5}} \right) \cdot h_{62n}} + {\left( {{F\; 3} + {F\; 4}} \right) \cdot h_{63n}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{i = \begin{bmatrix} \begin{matrix} {{\left( {{A\; 1} + {F\; 1}} \right) \cdot h_{11i}} + {\left( {{A\; 2} + \; {F\; 2}} \right) \cdot h_{12i}} +} \\ {{\left( {{A\; 3} + {F\; 3}} \right) \cdot h_{13i}} + {\left( {{B\; 1} + {E\; 1}} \right) \cdot h_{21i}} +} \end{matrix} \\ {{\left( {{B\; 2} + \; {E\; 2}} \right) \cdot h_{22i}} + {\left( {{B\; 3} + {E\; 3}} \right) \cdot h_{23i}} +} \\ \begin{matrix} {{\left( {{C\; 1} + {D\; 1}} \right) \cdot h_{31i}} + {\left( {{C\; 2} + \; {D\; 2}} \right) \cdot h_{32i}} +} \\ {{\left( {{C\; 3} + {D\; 3}} \right) \cdot h_{33i}} + {\left( {{C\; 6} + {D\; 6}} \right) \cdot h_{41i}} +} \end{matrix} \\ \begin{matrix} {{\left( {{C\; 5} + \; {D\; 5}} \right) \cdot h_{42i}} + {\left( {{C\; 4} + {D\; 4}} \right) \cdot h_{43i}} +} \\ {{\left( {{B\; 6} + {E\; 6}} \right) \cdot h_{51i}} + {\left( {{B\; 5} + \; {E\; 5}} \right) \cdot h_{52i}} +} \end{matrix} \\ {{\left( {{B\; 4} + {E\; 4}} \right) \cdot h_{53i}} + {\left( {{A\; 6} + {F\; 6}} \right) \cdot h_{61i}} +} \\ {{\left( {{A\; 5} + \; {F\; 5}} \right) \cdot h_{62i}} + {\left( {{A\; 4} + {F\; 4}} \right) \cdot h_{63i}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{k = \begin{bmatrix} \begin{matrix} {{\left( {{A\; 1} + {F\; 1}} \right) \cdot h_{11k}} + {\left( {{A\; 2} + \; {F\; 2}} \right) \cdot h_{12k}} +} \\ {{\left( {{A\; 3} + {F\; 3}} \right) \cdot h_{13k}} + {\left( {{B\; 1} + {E\; 1}} \right) \cdot h_{21k}} +} \end{matrix} \\ {{\left( {{B\; 2} + \; {E\; 2}} \right) \cdot h_{22k}} + {\left( {{B\; 3} + {E\; 3}} \right) \cdot h_{23k}} +} \\ \begin{matrix} {{\left( {{C\; 1} + {D\; 1}} \right) \cdot h_{31k}} + {\left( {{C\; 2} + \; {D\; 2}} \right) \cdot h_{32k}} +} \\ {{\left( {{C\; 3} + {D\; 3}} \right) \cdot h_{33k}} + {\left( {{C\; 6} + {D\; 6}} \right) \cdot h_{41k}} +} \end{matrix} \\ {{\left( {{C\; 5} + \; {D\; 5}} \right) \cdot h_{42k}} + {\left( {{C\; 4} + {D\; 4}} \right) \cdot h_{43k}} +} \\ \begin{matrix} {{\left( {{B\; 6} + {E\; 6}} \right) \cdot h_{51k}} + {\left( {{B\; 5} + \; {E\; 5}} \right) \cdot h_{52k}} +} \\ {{\left( {{B\; 4} + {E\; 4}} \right) \cdot h_{53k}} + {\left( {{A\; 6} + {F\; 6}} \right) \cdot h_{61k}} +} \end{matrix} \\ {{\left( {{A\; 5} + \; {F\; 5}} \right) \cdot h_{62k}} + {\left( {{A\; 4} + {F\; 4}} \right) \cdot h_{63k}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{j = \begin{bmatrix} {{\left( {{A\; 1} + {A\; 6} + {F\; 1} + {F\; 6}} \right) \cdot h_{11}} +} \\ {{\left( {{A\; 2} + {A\; 5} + {B\; 1} + {B\; 6} + {E\; 1} + {E\; 6} + {F\; 2} + {F\; 5}} \right) \cdot h_{12}} +} \\ {{\left( {{A\; 3} + {A\; 4} + {C\; 1} + {C\; 6} + {D\; 1} + {D\; 6} + {F\; 3} + {F\; 4}} \right) \cdot h_{13}} +} \\ {{\left( {{B\; 2} + {B\; 5} + {E\; 2} + {E\; 5}} \right) \cdot h_{22}} +} \\ {{\left( {{B\; 3} + {B\; 4} + {C\; 2} + {C\; 5} + {D\; 2} + {D\; 5} + {E\; 3} + {E\; 4}} \right) \cdot h_{23}} +} \\ {{\left( {{C\; 3} + {C\; 4} + {D\; 3} + {D\; 4}} \right) \cdot h_{33}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{e = \begin{bmatrix} \begin{matrix} {{A\; {1 \cdot h_{11e}}} + {\left( {{A\; 2} + {B\; 1}} \right) \cdot h_{12e}} +} \\ {{\left( {{A\; 3} + {C\; 1}} \right) \cdot h_{13e}} + {\left( {{A\; 4} + {D\; 1}} \right) \cdot h_{14e}} +} \end{matrix} \\ {{\left( {{A\; 5} + {E\; 1}} \right) \cdot h_{15e}} + {\left( {{A\; 6} + {F\; 1}} \right) \cdot h_{16e}} +} \\ \begin{matrix} {{B\; {2 \cdot h_{22e}}} + {\left( {{B\; 3} + {C\; 2}} \right) \cdot h_{23e}} +} \\ {{\left( {{B\; 4} + {D\; 2}} \right) \cdot h_{24e}} + {\left( {{B\; 5} + {E\; 2}} \right) \cdot h_{25e}} +} \end{matrix} \\ {{\left( {{B\; 6} + {F\; 2}} \right) \cdot h_{26e}} + {C\; {3 \cdot h_{33e}}} +} \\ \begin{matrix} {{\left( {{C\; 4} + {D\; 3}} \right) \cdot h_{34e}} + {\left( {{C\; 5} + {E\; 3}} \right) \cdot h_{35e}} +} \\ {{\left( {{C\; 6} + {F\; 3}} \right) \cdot h_{36e}} + {D\; {4 \cdot h_{44e}}} +} \end{matrix} \\ {{\left( {{D\; 5} + {E\; 4}} \right) \cdot h_{45e}} + {\left( {{D\; 6} + {F\; 4}} \right) \cdot h_{46e}} +} \\ {{E\; {5 \cdot h_{55e}}} + {\left( {{E\; 6} + {F\; 5}} \right) \cdot h_{56e}} + {F\; {6 \cdot h_{66e}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{o = \begin{bmatrix} \begin{matrix} {{A\; {1 \cdot h_{11o}}} + {\left( {{A\; 2} + {B\; 1}} \right) \cdot h_{12o}} +} \\ {{\left( {{A\; 3} + {C\; 1}} \right) \cdot h_{13o}} + {\left( {{A\; 4} + {D\; 1}} \right) \cdot h_{14o}} +} \end{matrix} \\ {{\left( {{A\; 5} + {E\; 1}} \right) \cdot h_{15o}} + {\left( {{A\; 6} + {F\; 1}} \right) \cdot h_{16o}} +} \\ \begin{matrix} {{B\; {2 \cdot h_{22o}}} + {\left( {{B\; 3} + {C\; 2}} \right) \cdot h_{23o}} +} \\ {{\left( {{B\; 4} + {D\; 2}} \right) \cdot h_{24o}} + {\left( {{B\; 5} + {E\; 2}} \right) \cdot h_{25o}} +} \end{matrix} \\ {{\left( {{B\; 6} + {F\; 2}} \right) \cdot h_{26o}} + {C\; {3 \cdot h_{33o}}} +} \\ \begin{matrix} {{\left( {{C\; 4} + {D\; 3}} \right) \cdot h_{34o}} + {\left( {{C\; 5} + {E\; 3}} \right) \cdot h_{35o}} +} \\ {{\left( {{C\; 6} + {F\; 3}} \right) \cdot h_{36o}} + {D\; {4 \cdot h_{44o}}} +} \end{matrix} \\ {{\left( {{D\; 5} + {E\; 4}} \right) \cdot h_{45o}} + {\left( {{D\; 6} + {F\; 4}} \right) \cdot h_{46o}} +} \\ {{E\; {5 \cdot h_{55o}}} + {\left( {{E\; 6} + {F\; 5}} \right) \cdot h_{56o}} + {F\; {6 \cdot h_{66o}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{g = \begin{bmatrix} \begin{matrix} {{A\; {6 \cdot h_{11g}}} + {\left( {{A\; 5} + {B\; 6}} \right) \cdot h_{12g}} +} \\ {{\left( {{A\; 4} + {C\; 6}} \right) \cdot h_{13g}} + {\left( {{A\; 3} + {D\; 6}} \right) \cdot h_{14g}} +} \end{matrix} \\ {{\left( {{A\; 2} + {E\; 6}} \right) \cdot h_{15g}} + {\left( {{A\; 1} + {F\; 6}} \right) \cdot h_{16g}} +} \\ \begin{matrix} {{B\; {5 \cdot h_{22g}}} + {\left( {{B\; 4} + {C\; 5}} \right) \cdot h_{23g}} +} \\ {{\left( {{B\; 3} + {D\; 5}} \right) \cdot h_{24g}} + {\left( {{B\; 2} + {E\; 5}} \right) \cdot h_{25g}} +} \end{matrix} \\ {{\left( {{B\; 1} + {F\; 5}} \right) \cdot h_{26g}} + {C\; {4 \cdot h_{33g}}} +} \\ \begin{matrix} {{\left( {{C\; 3} + {D\; 4}} \right) \cdot h_{34g}} + {\left( {{C\; 2} + {E\; 4}} \right) \cdot h_{35g}} +} \\ {{\left( {{C\; 1} + {F\; 4}} \right) \cdot h_{36g}} + {D\; {3 \cdot h_{44g}}} +} \end{matrix} \\ {{\left( {{D\; 2} + {E\; 3}} \right) \cdot h_{45g}} + {\left( {{D\; 1} + {F\; 3}} \right) \cdot h_{46g}} +} \\ {{E\; {2 \cdot h_{55g}}} + {\left( {{E\; 1} + {F\; 2}} \right) \cdot h_{56g}} + {F\; {1 \cdot h_{66g}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},{{m = \begin{bmatrix} \begin{matrix} {{A\; {6 \cdot h_{11m}}} + {\left( {{A\; 5} + {B\; 6}} \right) \cdot h_{12m}} +} \\ {{\left( {{A\; 4} + {C\; 6}} \right) \cdot h_{13m}} + {\left( {{A\; 3} + {D\; 6}} \right) \cdot h_{14m}} +} \end{matrix} \\ {{\left( {{A\; 2} + {E\; 6}} \right) \cdot h_{15m}} + {\left( {{A\; 1} + {F\; 6}} \right) \cdot h_{16m}} +} \\ \begin{matrix} {{B\; {5 \cdot h_{22m}}} + {\left( {{B\; 4} + {C\; 5}} \right) \cdot h_{23m}} +} \\ {{\left( {{B\; 3} + {D\; 5}} \right) \cdot h_{24m}} + {\left( {{B\; 2} + {E\; 5}} \right) \cdot h_{25m}} +} \end{matrix} \\ {{\left( {{B\; 1} + {F\; 5}} \right) \cdot h_{26m}} + {C\; {4 \cdot h_{33m}}} +} \\ \begin{matrix} {{\left( {{C\; 3} + {D\; 4}} \right) \cdot h_{34m}} + {\left( {{C\; 2} + {E\; 4}} \right) \cdot h_{35m}} +} \\ {{\left( {{C\; 1} + {F\; 4}} \right) \cdot h_{36m}} + {D\; {3 \cdot h_{44m}}} + {\left( {{D\; 2} + {E\; 3}} \right) \cdot h_{45m}} +} \end{matrix} \\ {{\left( {{D\; 1} + {F\; 3}} \right) \cdot h_{46m}} + {E\; {2 \cdot h_{55m}}} +} \\ {{\left( {{E\; 1} + {F\; 2}} \right) \cdot h_{56m}} + {F\; {1 \cdot h_{66m}}} + 2^{9}} \end{bmatrix}}\operatorname{>>}10},$

h_(xyz) indicates the interpolation coefficient needed by each point during the interpolation.

For this two-dimensional interpolation filter, all the sub-pixel points are obtained by performing linear weighting on the integer pixel points. a, b, c, d, h, and l adopt the one-dimensional interpolation filter method. Other points undergo the interpolation filter by using 36 integer pixel points in the two-dimensional space.

The two-dimensional interpolation filter greatly increases the complexity of the encoder and the decoder. In addition, when small-size images are encoded, a lot of integer pixel point information is also needed. Thus, there is a lot of interpolation coefficient information to be transmitted in the bit stream, increasing the burden of the bit stream and reducing the efficiency of transmitting the interpolation coefficients by the bit stream.

Solution 3: In the current VCEG solution, a frame-level adaptive one-dimensional interpolation filter method is available. This method simplifies the interpolation operation on the basis of the preceding two-dimensional interpolation filter. In this method, the interpolation is performed with several one-dimensional horizontal and one-dimensional vertical integer pixel points only. Details are as follows:

a=[C1·h _(1a) +C2·h _(2a) +C3·h _(3a) +C4·h _(4a) +C5·h _(5a) +C6·h _(6a)+2⁷]>>8

b=[(C1+C6)·h _(1b)+(C2+C5)·h _(2b)+(C3+C4)·h _(3b)+2⁷]>>8

c=[C1·h _(1c) +C2·h _(2c) +C3·h _(3c) +C4·h _(4c) +C5·h _(5c) +C6·h _(6c)+2⁷]>>8

h=[(A3+F3)·h _(1h)+(B3+E3)·h _(2h)+(C3+D3)·h _(3h)+2⁷]>>8

j=[(b _(A) +b _(F))·h _(1j)+(b _(B) +b _(E))·h _(2j)+(b _(C) +b _(D))·h _(3j)+2⁷]>>8

d=[A3·h _(1d) +B3·h _(2d) +C3·h _(3d) +D3·h _(4d) +E3·h _(5d) +F3·h _(6d)+2⁷]>>8

l=[A3·h _(1l) +B3·h _(2l) +C3·h _(3l) +D3·h _(4l) +E3·h _(5l) +F3·h _(6l)+2⁷]>>8

i=[(a _(A) +a _(F))·h _(1i)+(a _(B) +a _(E))·h _(2i)+(a _(C) +a _(D))·h _(3i)+2⁷]>>8

k=[(c _(A) +c _(B))·h _(1k)+(c _(B) +c _(E))·h _(2k)+(c _(C) +c _(D))·h _(3k)+2⁷]>>8

f=[b _(A) ·h _(1f) +b _(B) ·h _(2f) +b _(C) ·h _(3f) +b _(D) ·h _(4f) +b _(E) ·h _(5f) +b _(F) ·h _(6f)+2⁷]>>8

n=[b _(A) ·h _(1n) +b _(B) ·h _(2n) +b _(C) ·h _(3n) +b _(D) ·h _(4n) +b _(E) ·h _(5n) +b _(F) ·h _(6n)+2⁷]>>8

e=[(a _(A) ·h _(1e) +a _(B) ·h _(2e) +a _(C) ·h _(3e) +a _(D) ·h _(4e) +a _(E) ·h _(5e) +a _(F) ·h _(6e)+2⁷]>>8

m=[(a _(A) ·h _(1m) +a _(B) ·h _(2m) +a _(C) ·h _(3m) +a _(D) ·h _(4m) +a _(E) ·h _(5m) +a _(F) ·h _(6m)+2⁷]>>8

g=[(c _(A) ·h _(1g) +c _(B) ·h _(2g) +c _(C) ·h _(3g) +c _(D) ·h _(4g) +c _(E) ·h _(5g) +c _(F) ·h _(6g)+2⁷]>>8

o=[(c _(A) ·h _(1o) +c _(B) ·h _(2o) +c _(C) ·h _(3o) +c _(D) ·h _(4o) +c _(E) ·h _(5o) +c _(F) ·h _(6o)+2⁷]>>8

h_(xy) indicates the interpolation coefficient needed by each point during the interpolation.

Compared with the preceding two-dimensional interpolation filter, the one-dimensional interpolation filter simplifies the interpolation operation. This interpolation method, however, cannot be fully compatible with the prior art (H.264). In this method, some integer pixel points or sub-pixel points need to be extended to perform the interpolation operation. In addition, sub-pixel points a, b, and c undergo a one-dimensional interpolation by using the horizontal pixel information, while sub-pixel points d, e, f, g, h, I, j, k, l, m, n, and o undergo a one-dimensional interpolation by using the vertical pixel information. In this separable one-dimensional interpolation filter method, too many vertical pixel points of the image are used. This may reduce the encoding efficiency when the texture information of the vertical pixels of the image changes frequently.

SUMMARY

Embodiments of the present invention provide an image interpolation method and apparatus and a method for obtaining interpolation coefficients to obtain pixel points in the vertical direction, horizontal direction or any other directions and perform interpolation filter on these pixel points, thus increasing the interpolation filter accuracy of the pixel points, improving the search accuracy of the pixel points, and obtaining more accurate matching block information in a reference image.

An image interpolation method is provided in an embodiment of the present invention. The pixel points are arranged in a two-dimensional matrix composed of rows in the horizontal direction and columns in the vertical direction. The method includes:

obtaining pixel values of integer pixel points and/or sub-pixel' points in a row, a column or in any other directions of the pixel points, where the sub-pixel points are pixel points between the adjacent integer pixel points;

obtaining pre-calculated interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and

interpolating the pixel points according to the obtained pixel values of the integer pixel points and/or sub-pixel points and corresponding interpolation coefficients.

A method for obtaining image interpolation coefficients includes:

constructing a Wiener-Hopf equation by using pixel points to be interpolated and the integer pixel points and/or sub-pixel points in a row, a column or in any other directions of the pixel points;

solving the Wiener-Hopf equation, and obtaining the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and

obtaining the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points.

An image interpolation apparatus includes:

a first obtaining module, adapted to obtain pixel values of integer pixel points and/or sub-pixel points in a row, a column or in any other directions of pixel points, where the sub-pixel points are pixel points between the adjacent integer pixel points;

a second obtaining module, adapted to obtain pre-calculated interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and

a first calculating module, adapted to interpolate the pixel points according to the obtained pixel values of the integer pixel points and/or sub-pixel points and corresponding interpolation coefficients.

According to the preceding technical solution of the present invention, by using the image interpolation method and apparatus, and the method for obtaining interpolation coefficients, each sub-pixel point is interpolated according to the obtained pixel values of the pixel points in different directions and corresponding interpolation coefficients. This can improve the interpolation filter effect and increase the search accuracy of the pixel points. In addition, the interpolation information of low-accuracy pixel points is fully used for the interpolations of high-accuracy pixel points. This may increase the calculation accuracy, improve the interpolation filter effect, and be compatible with the current video encoding and decoding technology.

BRIEF DESCRIPTION OF THE DRAWINGS

To make the technical solution under the present invention or in the prior art clearer, the accompanying drawings for illustrating the embodiments of the present invention or illustrating the prior art are outlined below. Evidently, the accompanying drawings are exemplary only, and those skilled in the art can derive other drawings from such accompanying drawings without creative work.

FIG. 1 illustrates interpolations of sub-pixel points between pixel points;

FIG. 2 is a flowchart of a first embodiment of an image interpolation method according to the present invention;

FIG. 3 is a flowchart of a second embodiment of the image interpolation method according to the present invention;

FIG. 4 shows a structure of a first embodiment of an image interpolation apparatus according to the present invention; and

FIG. 5 shows a structure of a second embodiment of the image interpolation apparatus according to the present invention.

DETAILED DESCRIPTION

The technical solution of the present invention is hereinafter described in detail with reference to the accompanying drawings. It is evident that the embodiments are only exemplary embodiments of the present invention and the present invention is not limited to such embodiments. Other embodiments that those skilled in the art obtain based on embodiments of the present invention also fall within the scope of protection of the present invention.

The technical solution provided in embodiments of the present invention is a one-dimensional interpolation filter technology, in which different directions are selected for pixel points at different positions. The different directions recited in this invention include the horizontal direction, vertical direction, and any other directions. This one-dimensional interpolation filter technology mixing different directions has a better interpolation filter effect on the video image with different texture information. This image interpolation method may be applied in scenarios where the encoder interpolates the pixel points in the reference image and the decoder interpolates the pixel points in the reference image.

FIG. 2 is a flowchart of the first embodiment of the image interpolation method according to the present invention. The method includes the following steps:

Step 101: Obtain pixel values of the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points.

Step 102: Obtain pre-calculated interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points.

Step 103: Interpolate the pixel points according to the obtained pixel values of the integer pixel points and/or sub-pixel points and corresponding interpolation coefficients.

The pixel points that need to be interpolated may be integer pixel points and sub-pixel points.

In this embodiment, the pixel points in any other directions are the pixel points that are proximately located on the same straight line as the sub-pixel points, which include integer pixel points and sub-pixel points. Only the pixel values of the integer pixel points or the pixel values of the sub-pixel points may be used, or the pixel values of both the integer pixel points and the sub-pixel points may be used. After the pixel values of these pixel points are obtained, the one-dimensional interpolation filter technology may be used to interpolate the sub-pixel points. The sub-pixel points to be interpolated always have a higher accuracy than the integer pixel points and/or sub-pixel points to be used or have the same accuracy as the sub-pixel points to be used. The sub-pixel points may be ½, ¼, ⅛ or 1/16 sub-pixel points or more accurate sub-pixel points.

In this embodiment, pixel values of pixel points in different directions are used during the interpolation calculation of sub-pixel points, and the distribution of textures in the two-dimensional space is fully considered. Thus, a higher encoding efficiency may be achieved, and the obtained pixel values of the integer pixel points and/or sub-pixel points may be compatible with the prior art.

FIG. 3 is a flowchart of the second embodiment of the image interpolation method according to the present invention. The method includes the following steps:

Step 201: Obtain pixel values of the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points.

Step 202: Construct a one-dimensional Wiener-Hopf equation by using the pixel points and the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points.

Step 203: Solve the Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points.

Step 204: Obtain the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points.

Step 205: Interpolate the sub-pixel points of the second accuracy or another sub-pixel point of the first accuracy according to the obtained pixel values of the integer pixel points and/or sub-pixel points of the first accuracy and corresponding interpolation coefficients.

The accuracy in step 205 is the accuracy for dividing sub-pixel points between adjacent integer pixel points. The shorter the distance between the divided sub-pixel point and its neighbor integer pixel point is, the higher the accuracy is. For example, the ¼ sub-pixel points have a higher accuracy than the ½ sub-pixel points; the ⅛ sub-pixel points have a higher accuracy than the 1/16 sub-pixel points. In this embodiment, the first accuracy may be a ½ sub-pixel point, and the second accuracy may be a ¼ sub-pixel point.

For example, the integer pixel points and/or sub-pixel points in the horizontal direction, vertical direction, the direction of positive 45 degrees and the direction of negative 45 degrees must be used to interpolate the required pixel points. The following describes specific interpolation formulas by using the integer pixel points and/or sub-pixel points in each direction.

Horizontal direction: A first sub-pixel point is interpolated according to the obtained pixel values of M integer pixel points and/or sub-pixel points of the first accuracy and interpolation coefficients corresponding to the M integer pixel points and/or sub-pixel points of the first accuracy, where the first sub-pixel point is located in the same row as the M pixel points and/or the sub-pixel points, and has a higher accuracy than the M integer pixel points and/or the sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, where the interpolation formula is:

a=A ₁ ·h _(1a) +A ₂ ·h _(2a) +A ₃ ·h _(3a) + . . . +A _(M) ·h _(Ma)

In this formula, a indicates the interpolation of the first sub-pixel point; A₁, A₂, . . . , A_(M) indicate the pixel values of the integer pixel points and/or sub-pixel points that are located in the same row as a; h_(1a), h_(2a), . . . , h_(Ma) indicate interpolation coefficients corresponding to each integer pixel point and/or each sub-pixel point; and M is a positive integer.

Fixed interpolation coefficients and pixel values of pixel points corresponding to the fixed interpolation coefficients are used for interpolation calculation to obtain the pixel values A₁, A₂, . . . , A_(M). For example, the pixel point corresponding to A₂ is a sub-pixel point that has a lower accuracy than the first sub-pixel point corresponding to a. That is, if a is a ¼ sub-pixel point, A₂ is a ½ sub-pixel point. Because A₂ is also a sub-pixel point, the pixel value of A2 also needs to be calculated with the interpolation method. However, if the calculation on the adaptive interpolation coefficients of A₂ is performed first and the calculation on the adaptive interpolation coefficients of a is performed accordingly, the encoding and decoding process becomes more complex. Thus, the following formula may be used to simplify the encoding and decoding process. For example, to calculate a sub-pixel point with a lower accuracy, this point may be interpolated by using a preset fixed interpolation coefficient. The fixed interpolation coefficient is a fixed value or remains unchanged within at least a period of time. Then, a is interpolated by using the calculated A₂ and other pixel points. In this case, the interpolation coefficient needed by a may be an adaptive interpolation coefficient.

Vertical direction: A second sub-pixel point is interpolated according to the obtained pixel values of N integer pixel points and/or the sub-pixel points of the first accuracy and interpolation coefficients corresponding to the N integer pixel points and/or the sub-pixel points of the first accuracy, where the second sub-pixel point is located in the same column as the N pixel points and/or the sub-pixel points, and has a higher accuracy than the N integer pixel points and/or the sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, where the interpolation formula is:

b=B ₁ ·h _(1b) +B ₂ ·h _(2b) +B ₃ ·h _(3b) + . . . +B _(N) ·h _(Nb)

In this formula, b indicates the interpolation of the second sub-pixel point; B₁, B₂, . . . , B_(N) indicate the pixel values of the integer pixel points and/or sub-pixel points that are located in the same column as b; h_(1b), h_(2b), . . . , h_(Nb) indicate interpolation coefficients corresponding to each integer pixel point and/or each sub-pixel point; and N is a positive integer.

Fixed interpolation coefficients and pixel values of pixel points corresponding to the fixed interpolation coefficients are used for interpolation calculation to obtain the pixel values B₁, B₂, . . . , B_(N).

Direction of positive 45 degrees: A third sub-pixel point is interpolated according to the obtained pixel values of I integer pixel points and/or the sub-pixel points of the first accuracy and interpolation coefficients corresponding to the I integer pixel points and/or the sub-pixel points of the first accuracy, where the third sub-pixel point is located in the same direction of positive 45 degrees as the I pixel points and/or the sub-pixel points, and has a higher accuracy than the I integer pixel points and/or the sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, where the interpolation formula is:

c=C ₁ ·h _(1c) +C ₂ ·h _(2c) +C ₃ ·h _(3c) + . . . +C ₁ ·h _(Ic)

In this formula, c indicates the interpolation of the third sub-pixel point; C₁, C₂, . . . , C_(I) indicate the pixel values of the integer pixel points and/or the sub-pixel point that are located in the same direction of positive 45 degrees as c; h_(1c), h_(2c), . . . , h_(Ic) indicate interpolation coefficients corresponding to each integer pixel point and/or sub-pixel point; and I is a positive integer.

Fixed interpolation coefficients and pixel values of pixel points corresponding to the fixed interpolation coefficients are used for interpolation calculation to obtain the pixel values C₁, C₂, . . . , C_(I).

Direction of negative 45 degrees: A fourth sub-pixel point is interpolated according to the obtained pixel values of K integer pixel points and/or the sub-pixel points of the first accuracy and interpolation coefficients corresponding to the K integer pixel points and/or the sub-pixel points of the first accuracy, where the fourth sub-pixel point is located in the same direction of negative 45 degrees as the K pixel points and/or the sub-pixel points, and has a higher accuracy than the K integer pixel points and/or the sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, where the interpolation formula is:

d=D ₁ ·h _(1d) +D ₂ ·h _(2d) +D ₃ ·h _(3d) + . . . +D _(K) ·h _(Kd)

In this formula, d indicates the interpolation of the third sub-pixel point; D₁, D₂, . . . , D_(K) indicate the pixel values of the integer pixel points and/or the sub-pixel point that are located in the same direction of negative 45 degrees as d; h_(1d), h_(2d), . . . , h_(Kd) indicate interpolation coefficients corresponding to each integer pixel point and/or sub-pixel point; and K is a positive integer.

Fixed interpolation coefficients and pixel values of pixel points corresponding to the fixed interpolation coefficients are used for interpolation calculation to obtain the pixel values D₁, D₂, . . . , D_(K).

The following describes how to calculate interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the required pixel points.

A one-dimensional Wiener-Hopf equation is constructed by using the required pixel points and a pixel point in a direction.

The following equation is constructed in the horizontal direction:

$^{2} = {\sum\limits_{x,y}\left( {S_{x,y} - {\sum\limits_{i}{h_{i} \cdot P_{{\overset{\sim}{x} + i},y}}}} \right)^{2}}$

In this equation, S indicates the original image that is being encoded, that is, the image to be used during the interpolation of pixel points in the reference image. S_(x,y) indicates a pixel point in the original image that is being encoded. P indicates the corresponding reference image. In the preceding equation, {tilde over (x)}=x+MV_(x)−FilterOffset, where MV_(x) indicates the horizontal motion vector of a (x, y) pixel point; FilterOffset indicates half the length of the filter; h, indicates the horizontal interpolation coefficient.

To obtain the optimal interpolation filter coefficient, e² should be the smallest, and the following formula must be met:

$\begin{matrix} {0 = \frac{\left( {\partial ^{2}} \right)}{\partial h_{i}}} \\ {= {\frac{\partial}{\partial h_{i}}\left( {\sum\limits_{x}{\sum\limits_{y}\left( {S_{x,y} - {\sum\limits_{i}{h_{i}P_{{\overset{\sim}{x} + i},y}}}} \right)^{2}}} \right)}} \\ {= {\sum\limits_{x}{\sum\limits_{y}{\left( {S_{x,y} - {\sum\limits_{i}{h_{i}P_{{\overset{\sim}{x} + i},y}}}} \right)P_{{\overset{\sim}{x} + k},y}}}}} \end{matrix}$

If ∀ie{0; 5}, the one-dimensional Wiener-Hopf equation may be as follows:

${\sum\limits_{x}{\sum\limits_{y}{S_{x,y}P_{{\overset{\sim}{x} + k},y}}}} = {\sum\limits_{x}{\sum\limits_{y}{\sum\limits_{i}{h_{i}P_{{\overset{\sim}{x} + i},y}P_{{\overset{\sim}{x} + k},y}}}}}$

The interpolation coefficient h_(i) corresponding to the pixel point in the original image in the horizontal direction may be obtained by solving this 6×6 two-dimensional equation.

Similarly, the Wiener-Hopf equation in the vertical direction is as follows:

$^{2} = {\sum\limits_{x,y}\left( {S_{x,y} - {\sum\limits_{i}{h_{i} \cdot P_{x,{\overset{\sim}{y} + i}}}}} \right)^{2}}$

Then, the one-dimensional Wiener-Hopf equation may be as follows:

${\sum\limits_{x}{\sum\limits_{y}{S_{x,y}P_{x,{\overset{\sim}{y} + k}}}}} = {\sum\limits_{x}{\sum\limits_{y}{\sum\limits_{i}{h_{i}P_{x,{\overset{\sim}{y} + i}}P_{x,{\overset{\sim}{y} + k}}}}}}$

In this equation, {tilde over (y)}=y+MV_(y)−FilterOffset, where MV_(y) indicates the vertical motion vector of a (x, y) pixel point; FilterOffset indicates half the length of the filter; h_(i) indicates the vertical interpolation coefficient.

The interpolation filter coefficient h_(i) in the vertical direction may be obtained by solving this 6×6 two-dimensional equation.

The Wiener-Hopf equation in the direction of negative 45 degrees is as follows:

${\sum\limits_{x}{\sum\limits_{y}{S_{x,y}P_{{\overset{\sim}{x} + {l{(i)}}},{\overset{\sim}{y} + {k{(i)}}}}}}} = {\sum\limits_{x}{\sum\limits_{y}{\sum\limits_{i}{h_{i}P_{{\overset{\sim}{x} + {n{(i)}}},{\overset{\sim}{y} + {m{(i)}}}}P_{{\overset{\sim}{x} + {l{(i)}}},{\overset{\sim}{y} + {k{(i)}}}}}}}}$

In this equation, l(i), k(i), m(i), n(i) depend on the positions of surrounding pixels used by i and interpolation at 45 degrees.

The interpolation filter coefficient h_(i) in the directions of positive and negative 45 degrees may be obtained by solving this 6×6 two-dimensional equation.

The following describes the method for calculating the interpolation coefficients of the preceding pixel points.

(1) Construct a one-dimensional Wiener-Hopf equation by using pixel points to be interpolated and integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points. The interpolation coefficients corresponding to the pixel points in the horizontal direction, vertical direction, and directions of positive and negative 45 degrees are calculated hereinbefore.

(2) Solve the Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points to be interpolated.

(3) Obtain the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points.

The following describes the pixel point interpolation filter method based on a specific embodiment.

After the interpolation coefficients to be used in each direction are calculated, these interpolation coefficients are obtained for the interpolation filter on the pixel points in the reference image.

As shown in FIG. 1, C4, D3, and D4 are integer pixel points adjacent to C3 in different directions; h and j are ½ sub-pixel points to be interpolated between these four integer pixel points; a, c, d, e, f, g, I, k, l, m, n, and o are ¼ sub-pixel points to be interpolated between these four integer pixel points.

The following describes the procedure for calculating the sub-pixel point interpolation.

Step 301: Obtain the pixel values of the integer pixel points in a row where sub-pixel points a, b, and c are located, that is, the pixel values of C1, C2, C3, C4, C5, and C6.

Step 302: Obtain the pre-calculated interpolation coefficient h_(i) corresponding to the integer pixel points in the row, where i indicates the subscript of h that is used to differentiate interpolation coefficients.

Step 303: Calculate the interpolations of a, b, and c according to the obtained pixel values of six integer pixel points C1, C2, C3, C4, C5, and C6 and corresponding interpolation coefficients. The formulas are as follows:

b=(C1+C6)·h _(1b)+(C2+C5)·h _(2b)+(C3+C4)·h _(3b);

a=C1·h _(1a) +C2·h _(2a) +C3·h _(3a) +C4·h _(4a) +C5·h _(5a) +C6·h _(6a);

c=C1·h _(1c) +C2·h _(2c) +C3·h _(3c) +C4·h _(4c) +C5·h _(5c) +C6·h _(6c);

The preceding formulas may be further simplified as follows:

b=C1·h _(1b)+(C2+C5)·h _(2b)+(C3+C4)·h _(3b);

a=C1·h _(1a) +C2·h _(2a) +C3·h _(3a) +C4·h _(4a) +C5·h _(5a) +C6·h _(6a);

c=C2·h _(2c) +C3·h _(3c) +C4·h _(4c) +C5·h _(5c) +C6·h _(6c);

Step 304: Obtain the pixel values of the integer pixel points in a column where sub-pixel points d, h, and l are located, that is, the pixel values of A3, B3, C3, D3, E3, and F3.

Step 305: Obtain the pre-calculated interpolation coefficient h_(i) corresponding to the integer pixel points in the column, where i indicates the subscript of h that is used to differentiate interpolation coefficients.

Step 306: Calculate the interpolations of d, h, and l according to the obtained pixel values of A3, B3, C3, D3, E3, and F3 and corresponding interpolation coefficients. The formulas are as follows:

h=(A3+F3)·h _(1h)+(B3+E3)·h _(2h)+(C3+D3)·h _(3h);

d=A3·h _(1d) +B3·h _(2d) +C3·h _(3d) +D3·h _(4d) +E3·h _(5d) +F3·h _(6d);

l=A3·h _(1l) +B3·h _(2l) +C3·h _(3l) +D3·h _(4l) +E3·h _(5l) +F3·h _(6l);

The preceding formulas may be further simplified as follows:

h=(A3+F3)·h _(1h)+(B3+E3)·h _(2h)+(C3+D3)·h _(3h);

d=A3·h _(1d) +B3·h _(2d) +C3·h _(3d) +D3·h _(4d) +E3·h _(5d);

l=B3·h _(2l) +C3·h _(3l) +D3·h _(4l) +E3·h _(5l) +F3·h _(6l);

Step 307: Obtain pixel values of ½ sub-pixel points in a row where the ½ sub-pixel point j is located, that is, the pixel values of b_(A), b_(B), b, b_(D), b_(E), and b_(F), where b indicates the pixel value of the ½ sub-pixel point calculated in step 301 to step 303; b_(A), b_(B), b_(D), b_(E), and b_(F) are calculated by using an interpolation filter method same as that for calculating b according to the integer pixel points in a row where b is located.

Because point j is located at the center of four integer pixel points adjacent to C4, D3, D4, and C3, point j may obtain pixel values of ½ sub-pixel points in the row where point j is located, that is, the pixel values of H1, H2, h, H4, H5, and H6, where h indicates the pixel value of the ½ sub-pixel point calculated in step 304 to step 306; H1, H2, H4, H5, and H6 are calculated by using an interpolation filter method same as that for calculating h according to the integer pixel points in a column where h is located.

Step 308: Obtain the pre-calculated interpolation coefficient h_(i) corresponding to the integer pixel points in the row or column, where i indicates the subscript of h that is used to differentiate interpolation coefficients.

Step 309: Calculate the interpolation of j according to the obtained pixel values of b_(A), b_(B), b, b_(D), b_(E), and b_(F) and corresponding interpolation coefficients. The formula is as follows:

j=(b _(A) +b _(F))h _(1j)+(b _(B) b _(E))h _(2j)+(b+b _(D))h _(3j);

Or, calculate the interpolation of j according to the obtained pixel values of H1, H2, h, H4, H5, and H6 and corresponding interpolation coefficients. The formula is as follows:

j=(H ₁ +H ₆)·h _(1j)+(H ₂ +H ₅)·h _(2j)+(h+H ₄)·h _(3j);

Step 310: Obtain pixel values of ½ sub-pixel points in a column where sub-pixel points f and n are located, that is, the pixel values of b_(A), b_(B), b, b_(D), b_(E), and b_(F).

Step 311: Obtain the pre-calculated interpolation coefficient h_(i) corresponding to the ½ sub-pixel points in the column, where i indicates the subscript of h that is used to differentiate interpolation coefficients.

Step 312: Calculate the interpolations of f and n according to the obtained pixel values of b_(A), b_(B), b, b_(D), b_(E), and b_(F) and corresponding interpolation coefficients. The formulas are as follows:

f=b _(A) ·h _(1f) +b _(B) ·h _(2f) +b·h _(3f) +b _(D) ·h _(4f) +b _(E) ·h _(5f) +b _(F) ·h _(6f);

n=b _(A) ·h _(1n) +b _(B) ·h _(2n) +b·h _(3n) +b _(D) ·h _(4n) +b _(E) ·h _(5n) +b _(F) ·h _(6n);

The preceding formulas may be further simplified as follows:

f=b _(A) ·h _(1f) +b _(B) ·h _(2f) +b·h _(3f) +b _(D) ·h _(4f) +b _(E) ·h _(5f);

n=b _(B) ·h _(2n) +b·h _(3n) +b _(D) ·h _(4n) +b _(E) ·h _(5n) +b _(F) ·h _(6n);

Step 313: Obtain pixel values of ½ sub-pixel points in a row where sub-pixel points I and k are located, that is, the pixel values of H1, H2, h, H4, H5, and H6.

Step 314: Obtain pre-calculated interpolation coefficient h_(i) corresponding to the ½ sub-pixel points in the row, where i indicates the subscript of h that is used to differentiate interpolation coefficients.

Step 315: Calculate the interpolations of i and k according to the obtained pixel values of H1, H2, h, H4, H5, and H6 and corresponding interpolation coefficients. The formulas are as follows:

i=H ₁ ·h _(1i) +H ₂ ·h _(2i) +h·h _(3i) +H ₄ ·h _(4i) +H ₅ ·h _(5i) +H ₆ ·h _(6i);

k=H ₁ ·h _(1k) +H ₂ ·h _(2k) +h·h _(3k) +H ₄ ·h _(4k) +H ₅ ·h _(5k) +H ₆ ·h _(6k);

The preceding formulas may be further simplified as follows:

i=H ₁ ·h _(1i) +H ₂ ·h _(2i) +h·h _(3i) +H ₄ ·h _(4i) +H ₅ ·h _(5i);

k=H ₂ ·h _(2k) +h·h _(3k) +H ₄ ·h _(4k) +H ₅ ·h _(5k) ·H ₆ ·h _(6k);

Step 316: Obtain the pixel values of integer pixel points and ½ sub-pixel point j in a direction of negative 45 degrees where sub-pixel points e and o are located, that is, the pixel value of A1, B2, C3, D4, E5, F6, and j.

Step 317: Obtain the pre-calculated interpolation coefficient h_(i) corresponding to the integer pixel point and ½ sub-pixel points in the direction of negative 45 degrees, where i indicates the subscript of h that is used to differentiate interpolation coefficients.

Step 318: Calculate the interpolations of e and o according to the obtained pixel values of A1, B2, C3, D4, E5, F6, and j and corresponding interpolation coefficients. The formulas are as follows:

e=A1·h _(1e) +B2·h _(2e) +C3·h _(3e) +j·h _(4e) +D4·h _(5e) +E5·h ₆ e;

o=B2·h _(1o) +C3·h _(2o) +j·h _(3o) +D4·h _(4o) +E5·h _(5o) +F6·h _(6o);

The preceding formulas may be further simplified as follows:

e=A1·h _(1e) +B2·h _(2e) +C3·h _(3e) +j·h _(4e) +D4·h _(5e);

o=C3·h _(2o) +j·h _(3o) +D4·h _(4o) +E5·h _(5o) +F6·h _(6o);

Step 319: Obtain the pixel values of integer pixel points and ½ sub-pixel point j in a direction of positive 45 degrees where sub-pixel points g and m are located, that is, the pixel value of A6, B5, C4, D3, E2, F1, and j.

Step 320: Obtain the pre-calculated interpolation coefficient h₁ corresponding to the integer pixel points and ½ sub-pixel points in the direction of positive 45 degrees, where i indicates the subscript of h that is used to differentiate interpolation coefficients.

Step 321: Calculate the interpolations of g and m according to the obtained pixel values of A6, B5, C4, D3, E2, F1, and j and corresponding interpolation coefficients. The formulas are as follows:

g=A6·h _(1g) +B5·h _(2g) +C4·h _(3g) +j·h _(4g) +D3·h _(5g) +E2·h _(6g);

m=F1·h _(1m) +E2·h _(2m) +D3h _(3m) +j·h _(4m) +C4·h _(5m) +B5·h _(6m);

The preceding formulas may be further simplified as follows:

g=A6·h _(1g) +B5·h _(2g) +C4·h _(3g) +j ·h _(4g) +D3·h _(5g);

m=E2·h _(2m) +D3·h _(3m) +j·h _(4m) +C4·h _(5m) +B5·h _(6m);

When four ¼ sub-pixel points e, o, g, and m are interpolated by using pixel points in the directions of positive and negative 45 degrees, the interpolation is not completely based on six integer pixel points because the pixel points in such directions are far from the four ¼ sub-pixel points. Instead, a ½ sub-pixel point (j) that is adjacent to the four ¼ sub-pixel points is used. For example, the interpolation of e is calculated by using A1, B2, C3, D4, and E5. The value of j used during the calculation of interpolations of e, o, g, and m may be calculated by using one of the two methods in step 307 to step 309.

It is evident that ½ sub-pixel points are used when the interpolations of 12 ¼ sub-pixel points are calculated in this embodiment. Thus, the interpolation coefficients of ½ sub-pixel points b, h, and j must be obtained to interpolate these three points. Then, the interpolation coefficients of the ¼ sub-pixel points are calculated to interpolate these three points.

The process includes: constructing a one-dimensional Wiener-Hopf equation by using the sub-pixel points of the first accuracy (that is, ½ sub-pixel points b, h, and j) and integer pixel points in the row, column or in any other directions of these sub-pixel points; solving the one-dimensional Wiener-Hopf equation to obtain interpolation coefficients corresponding to the sub-pixel points b, h, and j; constructing a one-dimensional Wiener-Hopf equation by using sub-pixel points of the second accuracy (that is, 12 ¼ sub-pixel points, namely, a, c, d, e, f, g, I, k, l, m, n, and o) and integer pixel points and/or sub-pixel points b, h, and j of the first accuracy in the row, column or in any other directions of the 12 sub-pixel points; solving the one-dimensional Wiener-Hopf equation to obtain the interpolation coefficients for interpolating the sub-pixel points of the second accuracy.

In this embodiment, when ½ sub-pixel point j and ¼ sub-pixel points f, n, I, and k are interpolated, interpolations of ½ sub-pixel points in column b of the ½ sub-pixel points or in row h of the ½ sub-pixel points are used, that is, the interpolations of b_(A), b_(B), b, b_(D), b_(E), b_(F) or the interpolations of H1, H2, h, H4, H5, and H6. To calculate the interpolations of ½ sub-pixel point j and ¼ sub-pixel points f, n, i, and k, intermediate points such as b_(A), b_(B), b, b_(D), b_(E), and b_(F), or H1, H2, h, H4, H5, and H6 may be interpolated by using a preset fixed interpolation coefficient. In addition, high-accuracy ½ sub-pixel points or ¼ sub-pixel points such as j, f, n, I, and k may be interpolated by using interpolation coefficients written to the bit stream. In this way, the image interpolation method may be simplified, and the encoding and decoding efficiency may be improved.

In the second embodiment of the image interpolation method, the sub-pixel point interpolation methods include the one-dimensional horizontal interpolation method, one-dimensional vertical interpolation method, and one-dimensional interpolation in the directions of positive and negative 45 degrees. Each sub-pixel point is interpolated in these three directions, which can improve the interpolation effect and search accuracy of sub-pixel points. In addition, the ½ sub-pixel point interpolation information is fully used to calculate the ¼ sub-pixel point interpolations, making it compatible with the video encoding and decoding technology in the prior art. The value of interpolation coefficient h_(i) varies with the positions of pixel points. This overcomes the weakness of the prior art in which the encoding and decoding efficiency is low because the interpolation calculation is simplified by using a fixed interpolation coefficient.

It is understandable to those skilled in the art that all or part of the steps in the preceding embodiments may be implemented by hardware instructed by a program. The program may be stored in a computer readable storage medium. When the program is executed, the processes of the preceding methods are executed. The storage medium may be a magnetic disk, a compact disk read-only memory (CD-ROM), a read-only memory (ROM) or a random access memory (RAM).

FIG. 4 shows a structure of a first embodiment of an image interpolation apparatus according to the present invention. The image interpolation apparatus includes:

a first obtaining module 1, adapted to obtain pixel values of integer pixel points and/or sub-pixel points in the row, column or in any other directions of pixel points, where the sub-pixel points are pixel points between the adjacent integer pixel points;

a second obtaining module 2, adapted to obtain pre-calculated interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and

a first calculating module 3, adapted to interpolate the pixel points according to the pixel values of the integer pixel points or sub-pixel points obtained from the first obtaining module 1 and corresponding interpolation coefficients obtained from the second obtaining module 2.

In this embodiment, the pixel point interpolation apparatus obtains the pixel points in the horizontal direction, vertical direction and any other directions and corresponding interpolation coefficients, and calculates interpolations of the pixel points. Different pixel points are interpolated in different directions. Thus, the interpolation calculation effect and the search accuracy of sub-pixel points are improved.

FIG. 5 shows a structure of a second embodiment of the image interpolation apparatus according to the present invention. Besides the preceding first obtaining module 1, the second obtaining module 2, and the first calculating module 3, the image interpolation apparatus further includes:

a first processing module 21, adapted to construct a one-dimensional Wiener-Hopf equation by using the pixel points and the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and

a second processing module 22, adapted to: solve the one-dimensional Wiener-Hopf equation constructed by the first processing module 21 to obtain interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points, and send the interpolation coefficients to the second obtaining module 2.

On the basis of the first processing module 21 and second processing module 22, the apparatus may further include a third processing module 23, adapted to solve the interpolations of some sub-pixel points by using preset fixed interpolation coefficients. For example, for points b and h in the preceding embodiment of the interpolation method, the second obtaining module 2 may obtain corresponding interpolation coefficients from the third processing module 23.

It should be noted that the above embodiments are merely provided for elaborating the technical solutions of the present invention, but not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, it is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. The invention shall cover the modifications and variations provided that they fall within the scope of protection defined by the following claims or their equivalents. 

1. An image interpolation method, wherein an image comprises multiple pixel points and the pixel points are arranged in a two-dimensional matrix composed of rows in a horizontal direction and columns in a vertical direction, the method comprising: obtaining pixel values of integer pixel points and/or sub-pixel points in a row, a column or in any other directions of the pixel points, wherein the sub-pixel points are pixel points between adjacent integer pixel points; obtaining pre-calculated interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and interpolating the pixel points according to the obtained pixel values of the integer pixel points and/or sub-pixel points and corresponding interpolation coefficients.
 2. The method according to claim 1, wherein the step of obtaining the pre-calculated interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points comprises: constructing a one-dimensional Wiener-Hopf equation by using the pixel points and the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; solving the one-dimensional Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel paints and/or sub-pixel points in the row, column or in any other directions of the pixel points; and obtaining the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points.
 3. The method according to claim 1, wherein the step of interpolating the pixel points according to the obtained pixel values of the integer pixel points and/or sub-pixel points and corresponding interpolation coefficients comprises: interpolating sub-pixel points of a second accuracy or another sub-pixel point of a first accuracy according to the obtained pixel values of the integer pixel points and/or sub-pixel points of the first accuracy and corresponding interpolation coefficients, wherein the accuracy is the accuracy for dividing the sub-pixel points between adjacent integer pixel points; the shorter the distances between the sub-pixel points and integer pixel points, and between the sub-pixel points and sub-pixel points are, the higher the accuracy is; and thus the first accuracy is lower than the second accuracy.
 4. The method according to claim 3, wherein the pixel values of the integer pixel points and/or sub-pixel points of the first accuracy are calculated by using fixed interpolation coefficients and pixel values of the pixel points corresponding to the fixed interpolation coefficients.
 5. The method according to claim 3, wherein the interpolation of pixel values of the integer pixel points and/or sub-pixel points of the first accuracy are calculated by using fixed interpolation coefficients.
 6. The method according to claim 4, wherein the step of interpolating the sub-pixel points of the second accuracy or another sub-pixel point of the first accuracy according to the obtained pixel values of the integer pixel points and/or sub-pixel points of the first accuracy and corresponding interpolation coefficients comprises: interpolating a first sub-pixel point according to the obtained pixel values of M integer pixel points and/or sub-pixel points of the first accuracy and interpolation coefficients corresponding to the M integer pixel points and/or sub-pixel points of the first accuracy, wherein the first sub-pixel point is located in the same row as the M pixel points and/or the sub-pixel points, and has a higher accuracy than the M integer pixel points and/or the sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, and the interpolation formula is: a=A₁·h_(1a)+A₂·h_(2a)+A₃·h_(3a)+ . . . +A_(M)·h_(Ma), wherein a indicates the value of the first sub-pixel point; A₁, A₂, . . . , A_(M) indicate the pixel values of the integer pixel points and/or sub-pixel points that are located in the same row as a; h_(1a), h_(2a) . . . , h_(Ma) indicate interpolation coefficients corresponding to each integer pixel point and/or sub-pixel point; and M is a positive integer.
 7. The method according to claim 4, wherein the step of interpolating the sub-pixel points of the second accuracy or another sub-pixel point of the first accuracy according to the obtained pixel values of the integer pixel points and/or sub-pixel points of the first accuracy and corresponding interpolation coefficients comprises: interpolating a second sub-pixel point according to the obtained pixel values of N integer pixel points and/or sub-pixel points of the first accuracy and interpolation coefficients corresponding to the N integer pixel points and/or sub-pixel points of the first accuracy, wherein the second sub-pixel point is located in the same column as the N pixel points and/or sub-pixel points, and has a higher accuracy than the N integer pixel points and/or sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, and the interpolation formula is: b=B₁·h_(1b)+B₂·h_(2b)+B₃·h_(3b)+ . . . +B_(N)·h_(Nb), wherein b indicates the value of the second sub-pixel point; B₁, B₂, . . . , B_(N) indicate the pixel values of the integer pixel points and/or sub-pixel points that are located in the same column as b; h_(1b), h_(2b), . . . , h_(Nb) indicate interpolation coefficients corresponding to each integer pixel point and/or sub-pixel point; and N is a positive integer.
 8. The method according to claim 4, wherein the step of interpolating the sub-pixel points of the second accuracy or another sub-pixel point of the first accuracy according to the obtained pixel values of the integer pixel points and/or sub-pixel points of the first accuracy and corresponding interpolation coefficients comprises: interpolating a third sub-pixel point according to the obtained pixel values of I integer pixel points and/or sub-pixel points of the first accuracy and interpolation coefficients corresponding to the I integer pixel points and/or sub-pixel points of the first accuracy, wherein the third sub-pixel point is located in the same direction of positive 45 degrees as the I pixel points and/or sub-pixel points, and has a higher accuracy than the I integer pixel points and/or sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, and the interpolation formula is: c=C₁·h_(1c)+C₂·h_(2c)+C₃·h_(3c)+ . . . +C_(I)·h_(Ic), wherein c indicates the value of the third sub-pixel point; C₁, C₂, . . . . C_(I) indicate the pixel values of the integer pixel points and/or sub-pixel points that are located in the same direction of positive 45 degrees as c; h_(1c), h_(2c), . . . , h_(Ic) indicate interpolation coefficients corresponding to each integer pixel point and/or sub-pixel point; and I is a positive integer.
 9. The method according to claim 4, wherein the step of interpolating the sub-pixel points of the second accuracy or another sub-pixel point of the first accuracy according to the obtained pixel values of the integer pixel points and/or sub-pixel points of the first accuracy and corresponding interpolation coefficients comprises: interpolating a fourth sub-pixel point according to the obtained pixel values of K integer pixel points and/or sub-pixel points of the first accuracy and interpolation coefficients corresponding to the K integer pixel points and/or sub-pixel points of the first accuracy, wherein the fourth sub-pixel point is located in the same direction of negative 45 degrees as the K pixel points and/or sub-pixel points, and has a higher accuracy than the K integer pixel points and/or sub-pixel points of the first accuracy or has the same accuracy as the sub-pixel points of the first accuracy, and the interpolation formula is: d=D₁·h_(1d)+D₂·h_(2d)+D₃·h_(3d)+ . . . +D_(K)·h_(Kd), wherein d indicates the value of the third sub-pixel point; D₁, D₂, . . . , D_(K) indicate the pixel values of the integer pixel points and/or sub-pixel points that are located in the same direction of negative 45 degrees as d; h_(1d), h₂, . . . , h_(Kd) indicate interpolation coefficients corresponding to each integer pixel point and/or sub-pixel point; and K is a positive integer.
 10. A method for obtaining image interpolation coefficients, the method comprising: constructing a one-dimensional Wiener-Hopf equation by using pixel points to be interpolated and integer pixel points and/or sub-pixel points in a row, a column or in any other directions of the pixel points; solving the one-dimensional Wiener-Hopf equation to obtain interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and obtaining the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points.
 11. The method according to claim 10, wherein the step of constructing the one-dimensional Wiener-Hopf equation by using the pixel points to be interpolated and the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points and solving the one-dimensional Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points comprises: constructing the one-dimensional Wiener-Hopf equation by using sub-pixel points of a first accuracy and integer pixel points in the row, column or in any other directions of the sub-pixel points of the first accuracy, wherein the accuracy is the accuracy for dividing sub-pixel points between adjacent integer pixel points; the shorter the distances between the divided sub-pixel points and integer pixel points, and between the divided sub-pixel points and sub-pixel points are, the higher the accuracy is; and solving the one-dimensional Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel points in the row, column or in any other directions of the sub-pixel points of the first accuracy.
 12. The method according to claim 11, wherein after solving the one-dimensional Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel points in the row, column or in any other directions of the sub-pixel points of a lower accuracy, the method further comprises: constructing a one-dimensional Wiener-Hopf equation by using sub-pixel points of a second accuracy and the integer pixel points in the row, column or in any other directions of the sub-pixel points of the second accuracy and/or the sub-pixel points of the first accuracy, wherein the sub-pixel points of the second accuracy have a higher accuracy than the sub-pixel points of the first accuracy; and solving the one-dimensional Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel points in the row, column or in any other directions of the sub-pixel points of the second accuracy and/or the sub-pixel points of the first accuracy.
 13. An image interpolation apparatus, comprising: a first obtaining module, adapted to obtain pixel values of integer pixel points and/or sub-pixel points in a row, a column or in any other directions of pixel points, wherein the sub-pixel points are pixel points between adjacent integer pixel points; a second obtaining module, adapted to obtain pre-calculated interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and a first calculating module, adapted to interpolate the pixel points according to the obtained pixel values of the integer pixel points and/or sub-pixel points and corresponding interpolation coefficients.
 14. The image interpolation apparatus according to claim 13, further comprising: a first processing module, adapted to construct a one-dimensional Wiener-Hopf equation by using the pixel points and the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points; and a second processing module, adapted to solve the one-dimensional Wiener-Hopf equation to obtain the interpolation coefficients corresponding to the integer pixel points and/or sub-pixel points in the row, column or in any other directions of the pixel points.
 15. The image interpolation apparatus according to claim 13, further comprising a third processing module adapted to set a fixed interpolation coefficient in advance. 